import PopUp from "../PopUp";

const { ccclass, property } = cc._decorator;

@ccclass
export default class GameOver extends PopUp {

    @property(cc.Label)
    scoreLbl: cc.Label = null;

    initUI(score: Number) {
        this.scoreLbl.string = `${score}`;
    }

    onRestartBtnClicked() {
        this.hidePopUp();
    }

    onHomeBtnClicked() {
        this.hidePopUp();
    }
}
